import request from '@/utils/request'

// 查询定义流程的基本信息列表
export function listBasicinfo(query) {
  return request({
    url: '/approval/basicinfo/list',
    method: 'get',
    params: query
  })
}

// 查询定义流程的基本信息详细
export function getBasicinfo(id) {
  return request({
    url: '/approval/basicinfo/' + id,
    method: 'get'
  })
}

// 新增定义流程的基本信息
export function addBasicinfo(data) {
  return request({
    url: '/approval/basicinfo',
    method: 'post',
    data: data
  })
}

// 修改定义流程的基本信息
export function updateBasicinfo(data) {
  return request({
    url: '/approval/basicinfo',
    method: 'put',
    data: data
  })
}

// 删除定义流程的基本信息
export function delBasicinfo(id) {
  return request({
    url: '/approval/basicinfo/' + id,
    method: 'delete'
  })
}

// 导出定义流程的基本信息
export function exportBasicinfo(query) {
  return request({
    url: '/approval/basicinfo/export',
    method: 'get',
    params: query
  })
}
